home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
linux-bo
/
shoelace.tar
/
shoelace
/
shoe
/
readme
< prev
next >
Wrap
Text File
|
1992-01-02
|
8KB
|
215 lines
W A R N I N G
Be Careful
ShoeLace Installation
=====================
I suggest that you practice making a bootable floppy *before* destroying your
hard disk. Firstly, read *all* the .doc files to familiarise yourself with the
components of the system. With Minix 1.4b or earlier, you will have to use
the supplied boot.h. Copy this file to /usr/include/minix. If you are using
Minix 1.5.0 or later, you can use the boot.h file that is supplied with the
system. All the source files for shoelace should be placed in /usr/src/shoelace.
Now compile all the sources to get:
/shoelace
/etc/laceup
/etc/bootlace
/etc/winiboot
along with the files:
/etc/config
/etc/disktab
Now put a file system on a floppy. Copy a /bin/sh, login, etc onto the floppy.
Don't worry if you miss something out, you can always try again when you've
worked out what's missing. What you basically want is the *bare* minimum of
what's on your hard disk to get a system *up*.
Now copy the following files onto the floppy:
/shoelace
/etc/config
As mentioned in laceup.doc, you can copy more, but for the time being, you can
get by with these two. Now:
laceup /dev/fd0 5.25dsdd
I'm assuming you're fiddling with drive 0 and fiddling with 5.25" dsdd
floppies. Modify to suit your own taste. In addition, you may need to edit
disktab to add extra entries.
Now hold your breath and boot the floppy. It should grind and grunt and you
should eventually see the ShoeLace sign on. ShoeLace should complain about not
being able to find anything. This is good.
Now you can reboot and copy on to the floppy your Minix kernel image. You can
choose whatever method you like at this point. Keep playing with the floppy
system until you feel comfortable with how everything goes together and how to
edit /etc/config on the floppy to suit your own taste. You can also play with
ShoeLace in its interactive mode.
The following is an image of a boot floppy that I use. It is basically the ram
disk image that comes with the Minix distribution with a few modifications:
-------------------------------------------------------------------------------
boot
240 255
d--755 0 0
etc d--777 0 0
bootlace ---666 0 0 /etc/bootlace
mount ---755 0 0 /etc/mount
system d--777 0 0
kernel ---666 0 0 /etc/system/kernel
mm ---666 0 0 /etc/system/mm
fs ---666 0 0 /etc/system/fs
init ---666 0 0 /etc/system/init
$
umount ---755 0 0 /etc/umount
rc ---644 0 0 /etc/rc
config ---666 0 0 /etc/config
ttys ---644 0 0 /etc/ttys
disktab ---666 0 0 /etc/disktab
update ---755 0 0 /etc/update
laceup ---755 0 0 /etc/laceup
$
usr d--777 0 0
$
user d--777 0 0
$
tmp d--777 0 0
$
shoelace ---666 0 0 /shoelace
bin d--777 0 0
cp ---755 0 0 /bin/cp
dosdir ---755 0 0 /bin/dosdir
dosread ---755 0 0 /bin/dosread
ln ---755 0 0 /bin/ln
mkdir ---755 0 0 /bin/mkdir
mknod ---755 0 0 /bin/mknod
rmdir ---755 0 0 /bin/rmdir
doswrite ---755 0 0 /bin/doswrite
getlf ---755 0 0 /bin/getlf
ls ---755 0 0 /bin/ls
sh ---755 0 0 /bin/sh
sync ---755 0 0 /bin/sync
rm ---755 0 0 /bin/rm
$
dev d--777 0 0
at0 b--666 0 0 2 0 1200
at1 b--666 0 0 2 1 1200
fd0 b--666 0 0 2 0 360
fd1 b--666 0 0 2 1 360
dosA b--666 0 0 2 0 0
hd0 b--444 0 0 3 0 41480
hd1 b--444 0 0 3 1 20731
hd2 b--444 0 0 3 2 20740
kmem c--444 0 0 1 2
mem c--444 0 0 1 1
null c--666 0 0 1 3
ram b--666 0 0 1 0 0
tty c--666 0 0 5 0
tty0 c--666 0 0 4 0
tty1 c--666 0 0 4 1
tty2 c--666 0 0 4 2
dosC b--444 0 0 3 1 20731
$
$
-------------------------------------------------------------------------------
Once you're happy you can then set up the same files on your hard disk. Now
you are ready to install the bootstrap onto your hard disk partition. Use:
laceup /dev/hd1 wini
to install it in the first hard disk partition.
*****************
* W A R N I N G *
*****************
If your hard disk is partitioned, do not install the
bootstrap on /dev/hd0 or you will destroy your hard
disk partition table.
You must laceup the partition from which you wish to
boot Minix.
WiniBoot Installation
=====================
WiniBoot allows you to select which hard disk partition you wish to boot.
Those who have not partitioned their hard disks may skip this section.
WiniBoot is always installed on /dev/hd0 --- never in one of the partitions.
If you do so, you will overwrite your previously installed bootstrap.
***************************
* C O M P L I C A T I O N *
***************************
Before WiniBoot will work, it is necessary that the partition
table accurately reflect where the Minix file system actually
starts. This is important for those with file systems created
*before* 1.5.0. In old file systems, the Minix wini driver
rounded up the parition start sector to an even number. Thus
the first physical sector of the partition is unused. WiniBoot
doesn't know about this and will try to boot using the first
physical sector. This usually results in a crash at boot time.
If you have such a file system, I suggest that you run the new
fdisk which will adjust the partition table for old file systems
so that it points to the start of the Minix file system.
Alternatively you can edit your partition table manually (a program
like Norton's NU is good for this --- I haven't tried de) so
that the Minix partition starts on an even sector by incrementing
the starting sector, incrementing the base sector and decrementing
the partition size. You may also want to adjust the size of
the previous partition (to make it bigger).
Now, before you install WiniBoot on the hard disk, I suggest that you again play
using a floppy. Firstly, format a floppy. Then:
cat /dev/hd0 >/dev/fd0
# wait a few seconds then kill it
which should copy the boot sector from the hard disk to the floppy (wait
sufficient time to ensure that the boot sector is copied before killing the
process --- I usually wait until I hear the floppy head step to the next
track).
Now you can:
laceup -w 1 /dev/fd0
which will write WiniBoot onto the floppy (yes, I know it sounds silly). Check
that the reported partitions are correct. You may want to choose a partition
other than 1 for the default boot partition.
You should now copy ShoeLace and the configuration file into the base directory
of the hard disk. If you have the hard disk mounted as /usr then:
cp /shoelace /usr/shoelace
cp /etc/config /usr/etc/config
If you have the hard disk mounted as root, then ShoeLace should already be in
place as /shoelace and the configuration file as /etc/config.
Now boot the floppy. You should see the WiniBoot sign on and get a report of
the partitions available. Furthermore, WiniBoot should boot the *hard disk*
partitions according to the numbers you type in to the prompt. Note that if
you boot the floppy in drive 0, you will boot hard disk drive 0, floppy
drive 1 for hard disk drive 1, etc.
You can use this to check that the ShoeLace installation was successful without
stuffing up your hard disk partitions. Once you are happy with this you can:
laceup -w 1 /dev/hd0
The configuration file can be edited to reflect your particular needs.
=====================